import 'package:flutter/material.dart';
import './player.dart';

class MainRole extends Player {
  // MainRole({@required String nickname, Roles role, int sex}):super(nickname: nickname, role:role, sex:sex);
  MainRole({@required String roleId, @required String uname, @required int sex, @required int asset}):super(roleId: roleId, isMainRole: true, uname: uname, sex: sex, asset: asset);
  List<String> otherRoleLastCards;

  @override
  void playCards(List<String> _cards) {
    this.cards.removeWhere((card){
      return _cards.indexOf(card) > -1;
    });
    this.lastCards = _cards;
  }
  
  void setOtherRoleLastCards(List<String> cards) {
    this.otherRoleLastCards = cards;
  }
}